package com.joseph.websocket.test;

import com.yunji.im.entity.ImMessage;

import java.util.HashMap;
import java.util.TreeMap;
import java.util.concurrent.ConcurrentSkipListMap;
import java.util.concurrent.Phaser;

public class A extends ImMessage {

    public static HashMap a = new HashMap();

    public static void main(String[] args) {
        a.put("a","bb");
        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    Thread.sleep(10000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                Thread.currentThread().interrupt();
                System.out.println("int");
                Thread.interrupted();
            }
        }).start();

        while (true) {
            System.out.println(1);
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
